<template>
  <div class="van-gray">
    <van-nav-bar
      :z-index="999"
      :fixed="true"
      left-arrow
      @click-left="onClickLeft"
      :placeholder="true"
      title="降价急售"
    ></van-nav-bar>
    <div class="cs-curshort">
      <img src="../../../assets/images/02.png" alt />
    </div>
    <div v-for="(item, index) in list" :key="index" @click="vehicleDetails" class="cs-intro">
      <img :src="item.img" />
      <div class="cs-introduce">
        <p>{{item.intro}}</p>
        <div class="cs-price">
          <div>{{item.price}}万</div>
          <p>{{item.original}}万</p>
        </div>
        <div class="cs-time">{{item.time}}年/{{item.kilometre}}万公里</div>
        <div class="cs-short">降价急售</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "CutShort",
  data() {
    return {
      list: [
        {
          img: require("../../../assets/images/01.png"),
          intro: "福特 福克斯两箱 2020款 两箱 自动风尚型",
          price: "10.19",
          original: "11.21",
          time: "2015",
          kilometre: "4.12",
          sstate: "降价急售"
        },
        {
          img: require("../../../assets/images/03.png"),
          intro: "长丰 猎豹CS10 2017款 2.0T 自动 豪华型",
          price: "7.58",
          original: "11.21",
          time: "2017",
          kilometre: "2",
          sstate: "降价急售"
        },
        {
          img: require("../../../assets/images/01.png"),
          intro: "福特 福克斯两箱 2020款 两箱 自动风尚型",
          price: "10.19",
          original: "11.21",
          time: "2015",
          kilometre: "4.12",
          sstate: "降价急售"
        },
        {
          img: require("../../../assets/images/03.png"),
          intro: "长丰 猎豹CS10 2017款 2.0T 自动 豪华型",
          price: "7.58",
          original: "11.21",
          time: "2017",
          kilometre: "2",
          sstate: "降价急售"
        },
        {
          img: require("../../../assets/images/01.png"),
          intro: "福特 福克斯两箱 2020款 两箱 自动风尚型",
          price: "10.19",
          original: "11.21",
          time: "2015",
          kilometre: "4.12",
          sstate: "降价急售"
        },
        {
          img: require("../../../assets/images/03.png"),
          intro: "长丰 猎豹CS10 2017款 2.0T 自动 豪华型",
          price: "7.58",
          original: "11.21",
          time: "2017",
          kilometre: "2",
          sstate: "降价急售"
        },
        {
          img: require("../../../assets/images/01.png"),
          intro: "福特 福克斯两箱 2020款 两箱 自动风尚型",
          price: "10.19",
          original: "11.21",
          time: "2015",
          kilometre: "4.12",
          sstate: "降价急售"
        },
        {
          img: require("../../../assets/images/03.png"),
          intro: "长丰 猎豹CS10 2017款 2.0T 自动 豪华型",
          price: "7.58",
          original: "11.21",
          time: "2017",
          kilometre: "2",
          sstate: "降价急售"
        }
      ]
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    vehicleDetails() {
      this.$router.push({ path: "/vehicleDetails" });
    }
  },
    created(){
    let dsBridge = require("dsbridge");
         dsBridge.call("goBack","", function() {
           history.go(-1);
         });
   },
};
</script>

<style>
</style>